﻿<DatePickerBody @bind-Value="Value" OnConfirm="@OnConfirm" ShowFooter="false" />
<ConsoleLogger @ref="Logger" class="mt-3" />

@code {
    [NotNull]
    private ConsoleLogger? Logger { get; set; }

    private DateTime Value { get; set; } = DateTime.Today;

    private Task OnConfirm()
    {
        Logger.Log($"Value: {Value:yyyy-MM-dd}");
        return Task.CompletedTask;
    }
}
